import request from '@/utils/request'


export function getInventory(deviceId) {
  return request({
    url: `/api/inventory/${deviceId}?deviceId=${deviceId}`, 
    method: 'get'
  })
}


export function postInventoryFind(data) {
  return request({
    url: '/api/inventory/find', 
    method: 'post',
    data
  })
}

export function postInventoryUpdate(data) {
  return request({
    url: '/api/inventory/update', 
    method: 'post',
    data
  })
}